package com.ajieee.merge.mapper;

import com.ajieee.merge.entity.finance.po.EtfInfoPO;
import com.ajieee.merge.enums.finance.Exchange;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;

/**
 * @author ajieee
 * @date 2025-10-26
 */
public interface EtfInfoMapper extends BaseMapper<EtfInfoPO> {

	default void deleteByExchange(Exchange exchange) {
		LambdaQueryWrapper<EtfInfoPO> wrapper = Wrappers.<EtfInfoPO>lambdaQuery()
				.eq(EtfInfoPO::getExchange, exchange);
		delete(wrapper);
	}
}
